import request from '@/utils/request'

// 查询班组基础信息列表
export function listGroupManagement(query) {
  return request({
    url: '/basic/groupManagement/list',
    method: 'get',
    params: query
  })
}

// 查询班组基础信息详细
export function getGroupManagement(id) {
  return request({
    url: '/basic/groupManagement/' + id,
    method: 'get'
  })
}

// 新增班组基础信息
export function addGroupManagement(data) {
  return request({
    url: '/basic/groupManagement',
    method: 'post',
    data: data
  })
}

// 修改班组基础信息
export function updateGroupManagement(data) {
  return request({
    url: '/basic/groupManagement',
    method: 'put',
    data: data
  })
}

// 删除班组基础信息
export function delGroupManagement(id) {
  return request({
    url: '/basic/groupManagement/' + id,
    method: 'delete'
  })
}


// 工厂下拉列表
export function getFactoryList() {
  return request({
    url: '/basic/factory/selectList',
    method: 'get'
  })
}


// 生产线下拉列表
export function getProductlineList() {
  return request({
    url: '/basic/productLine/selectList',
    method: 'get'
  })
}
